//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.utils.basehelper.money;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MoneyJsonDeserializer extends JsonDeserializer<Long> {
    private static final Logger log = LoggerFactory.getLogger(MoneyJsonDeserializer.class);

    public MoneyJsonDeserializer() {
    }

    public Long deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
        String value = p.getText();

        try {
            return value == null ? null : com.zr.test.MoneyConvertUtil.convertToFen(value);
        } catch (NumberFormatException var5) {
            return null;
        }
    }
}
